

project(qbkernel)

file(GLOB_RECURSE SRCS CONFIGURE_DEPENDS ./*.cpp)

if (WINDOWS)
list(REMOVE_ITEM SRCS ${CMAKE_CURRENT_SOURCE_DIR}/./source/qb_modules_unix.cpp)
else ()
list(REMOVE_ITEM SRCS ${CMAKE_CURRENT_SOURCE_DIR}/./source/qb_com.cpp
                      ${CMAKE_CURRENT_SOURCE_DIR}/./source/qb_modules.cpp)
endif()

add_library(${PROJECT_NAME} SHARED
     ${SRCS}
)

target_compile_options(${PROJECT_NAME} PRIVATE -DQBKERNEL_EXPORTS -DNOT_USEQT)
target_link_libraries(${PROJECT_NAME} PRIVATE core qbnet qbmessage)
